Optimal. Leaf size=51 \[ \frac{19 \tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{32 \sqrt{2}}-\frac{9 \sinh (x) \cosh (x)}{32 \left (\cosh ^2(x)+1\right )}-\frac{\sinh (x) \cosh (x)}{8 \left (\cosh ^2(x)+1\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0512598, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {3184, 3173, 12, 3181, 206} \[ \frac{19 \tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{32 \sqrt{2}}-\frac{9 \sinh (x) \cosh (x)}{32 \left (\cosh ^2(x)+1\right )}-\frac{\sinh (x) \cosh (x)}{8 \left (\cosh ^2(x)+1\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3184
Rule 3173
Rule 12
Rule 3181
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{\left (1+\cosh ^2(x)\right )^3} \, dx &=-\frac{\cosh (x) \sinh (x)}{8 \left (1+\cosh ^2(x)\right )^2}-\frac{1}{8} \int \frac{-7+2 \cosh ^2(x)}{\left (1+\cosh ^2(x)\right )^2} \, dx\\ &=-\frac{\cosh (x) \sinh (x)}{8 \left (1+\cosh ^2(x)\right )^2}-\frac{9 \cosh (x) \sinh (x)}{32 \left (1+\cosh ^2(x)\right )}-\frac{1}{32} \int -\frac{19}{1+\cosh ^2(x)} \, dx\\ &=-\frac{\cosh (x) \sinh (x)}{8 \left (1+\cosh ^2(x)\right )^2}-\frac{9 \cosh (x) \sinh (x)}{32 \left (1+\cosh ^2(x)\right )}+\frac{19}{32} \int \frac{1}{1+\cosh ^2(x)} \, dx\\ &=-\frac{\cosh (x) \sinh (x)}{8 \left (1+\cosh ^2(x)\right )^2}-\frac{9 \cosh (x) \sinh (x)}{32 \left (1+\cosh ^2(x)\right )}+\frac{19}{32} \operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\coth (x)\right )\\ &=\frac{19 \tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{32 \sqrt{2}}-\frac{\cosh (x) \sinh (x)}{8 \left (1+\cosh ^2(x)\right )^2}-\frac{9 \cosh (x) \sinh (x)}{32 \left (1+\cosh ^2(x)\right )}\\ \end{align*}
Mathematica [A] time = 0.170723, size = 51, normalized size = 1. \[ \frac{19 \tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{32 \sqrt{2}}-\frac{9 \sinh (2 x)}{32 (\cosh (2 x)+3)}-\frac{\sinh (2 x)}{4 (\cosh (2 x)+3)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.015, size = 129, normalized size = 2.5 \begin{align*} -{\frac{1}{4} \left ({\frac{11}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{7}}+{\frac{7}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{5}}+{\frac{7}{8} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3}}+{\frac{11}{8}\tanh \left ({\frac{x}{2}} \right ) } \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{4}+1 \right ) ^{-2}}+{\frac{19\,\sqrt{2}}{256}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}} \right ) }-{\frac{19\,\sqrt{2}}{256}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.71825, size = 112, normalized size = 2.2 \begin{align*} -\frac{19}{128} \, \sqrt{2} \log \left (-\frac{2 \, \sqrt{2} - e^{\left (-2 \, x\right )} - 3}{2 \, \sqrt{2} + e^{\left (-2 \, x\right )} + 3}\right ) - \frac{89 \, e^{\left (-2 \, x\right )} + 171 \, e^{\left (-4 \, x\right )} + 19 \, e^{\left (-6 \, x\right )} + 9}{16 \,{\left (12 \, e^{\left (-2 \, x\right )} + 38 \, e^{\left (-4 \, x\right )} + 12 \, e^{\left (-6 \, x\right )} + e^{\left (-8 \, x\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.14874, size = 1935, normalized size = 37.94 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 35.8442, size = 428, normalized size = 8.39 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29837, size = 96, normalized size = 1.88 \begin{align*} \frac{19}{128} \, \sqrt{2} \log \left (-\frac{2 \, \sqrt{2} - e^{\left (2 \, x\right )} - 3}{2 \, \sqrt{2} + e^{\left (2 \, x\right )} + 3}\right ) + \frac{19 \, e^{\left (6 \, x\right )} + 171 \, e^{\left (4 \, x\right )} + 89 \, e^{\left (2 \, x\right )} + 9}{16 \,{\left (e^{\left (4 \, x\right )} + 6 \, e^{\left (2 \, x\right )} + 1\right )}^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]